﻿<phone:PhoneApplicationPage 
    x:Class="NASA.BeAMartian.Views.RegisterChild"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
	xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False">
    <phone:PhoneApplicationPage.Resources>

        <Style x:Key="PhoneButtonBase2" TargetType="ButtonBase">
            <Setter Property="Background" Value="Transparent"/>
            <Setter Property="BorderBrush" Value="{StaticResource PhoneForegroundBrush}"/>
            <Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>
            <Setter Property="BorderThickness" Value="{StaticResource PhoneBorderThickness}"/>
            <Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilySemiBold}"/>
            <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeMediumLarge}"/>
            <Setter Property="Padding" Value="10,3,10,5"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ButtonBase">
                        <Grid Background="Transparent">
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="MouseOver"/>
                                    <VisualState x:Name="Pressed">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentContainer">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneBackgroundBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonBackground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneForegroundBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonBackground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneForegroundBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Disabled">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentContainer">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneDisabledBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonBackground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneDisabledBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonBackground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="Transparent"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Border x:Name="ButtonBackground" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="0" Margin="{StaticResource PhoneTouchTargetOverhang}">
                                <ContentControl x:Name="ContentContainer" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
                            </Border>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="PhoneRadioButtonCheckBoxBase" BasedOn="{StaticResource PhoneButtonBase2}" TargetType="ToggleButton">
            <Setter Property="Background" Value="{StaticResource PhoneRadioCheckBoxBrush}"/>
            <Setter Property="BorderBrush" Value="White"/>
            <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeMedium}"/>
            <Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilyNormal}"/>
            <Setter Property="HorizontalContentAlignment" Value="Left"/>
            <Setter Property="VerticalContentAlignment" Value="Center"/>
            <Setter Property="Padding" Value="0"/>
        </Style>
        <Style x:Key="CheckBoxStyle2" BasedOn="{StaticResource PhoneRadioButtonCheckBoxBase}" TargetType="CheckBox">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="CheckBox">
                        <Grid Background="Transparent">
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="MouseOver"/>
                                    <VisualState x:Name="Pressed">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="CheckBackground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneRadioCheckBoxPressedBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="CheckBackground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneRadioCheckBoxPressedBorderBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="CheckMark">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneRadioCheckBoxCheckBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="IndeterminateMark">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneRadioCheckBoxCheckBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Disabled">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="CheckBackground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneRadioCheckBoxDisabledBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="CheckBackground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneDisabledBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="CheckMark">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneRadioCheckBoxCheckDisabledBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="IndeterminateMark">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneRadioCheckBoxCheckDisabledBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentContainer">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneDisabledBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                                <VisualStateGroup x:Name="CheckStates">
                                    <VisualState x:Name="Checked">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="CheckMark">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Visible</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Unchecked"/>
                                    <VisualState x:Name="Indeterminate">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="IndeterminateMark">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Visible</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Grid Margin="{StaticResource PhoneTouchTargetLargeOverhang}">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="32"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Border x:Name="CheckBackground" BorderBrush="White" BorderThickness="{StaticResource PhoneBorderThickness}" Background="{TemplateBinding Background}" HorizontalAlignment="Left" Height="32" IsHitTestVisible="False" VerticalAlignment="Center" Width="32"/>
                                <Rectangle x:Name="IndeterminateMark" Fill="{StaticResource PhoneRadioCheckBoxCheckBrush}" HorizontalAlignment="Center" Height="16" IsHitTestVisible="False" Grid.Row="0" Visibility="Collapsed" VerticalAlignment="Center" Width="16"/>
                                <Path x:Name="CheckMark" Data="M0,119 L31,92 L119,185 L267,0 L300,24 L122,250 z" Fill="White" HorizontalAlignment="Center" Height="18" IsHitTestVisible="False" Stretch="Fill" StrokeThickness="2" StrokeLineJoin="Round" Visibility="Collapsed" VerticalAlignment="Center" Width="24"/>
                                <ContentControl x:Name="ContentContainer" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Grid.Column="1" Foreground="{TemplateBinding Foreground}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="12,0,0,0" Padding="{TemplateBinding Padding}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
                            </Grid>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <ControlTemplate x:Key="PhoneDisabledTextBoxTemplate" TargetType="TextBox">
            <ContentControl x:Name="ContentElement" BorderThickness="0" HorizontalContentAlignment="Stretch" Margin="{StaticResource PhoneTextBoxInnerMargin}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="Stretch"/>
        </ControlTemplate>
        <Style x:Key="TextBoxStyle1" TargetType="TextBox">
            <Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilyNormal}"/>
            <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeMediumLarge}"/>
            <Setter Property="Background" Value="{StaticResource PhoneTextBoxBrush}"/>
            <Setter Property="Foreground" Value="{StaticResource PhoneTextBoxForegroundBrush}"/>
            <Setter Property="BorderBrush" Value="{StaticResource PhoneTextBoxBrush}"/>
            <Setter Property="SelectionBackground" Value="{StaticResource PhoneAccentBrush}"/>
            <Setter Property="SelectionForeground" Value="{StaticResource PhoneTextBoxSelectionForegroundBrush}"/>
            <Setter Property="BorderThickness" Value="{StaticResource PhoneBorderThickness}"/>
            <Setter Property="Padding" Value="2"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="TextBox">
                        <Grid Background="Transparent">
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="MouseOver"/>
                                    <VisualState x:Name="Disabled">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="EnabledBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Collapsed</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DisabledOrReadonlyBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Visible</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="ReadOnly">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="EnabledBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Collapsed</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DisabledOrReadonlyBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Visible</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="DisabledOrReadonlyBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneTextBoxBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="DisabledOrReadonlyBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneTextBoxBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="DisabledOrReadonlyContent">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneTextBoxReadOnlyBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                                <VisualStateGroup x:Name="FocusStates">
                                    <VisualState x:Name="Focused">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="EnabledBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="White"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="EnabledBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneTextBoxEditBorderBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Unfocused"/>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Border x:Name="EnabledBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Margin="{StaticResource PhoneTouchTargetOverhang}">
                                <ContentControl x:Name="ContentElement" BorderThickness="0" HorizontalContentAlignment="Stretch" Margin="{StaticResource PhoneTextBoxInnerMargin}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="Stretch"/>
                            </Border>
                            <Border x:Name="DisabledOrReadonlyBorder" BorderBrush="{StaticResource PhoneDisabledBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="Transparent" Margin="{StaticResource PhoneTouchTargetOverhang}" Visibility="Collapsed">
                                <TextBox x:Name="DisabledOrReadonlyContent" Background="Transparent" Foreground="{StaticResource PhoneDisabledBrush}" FontWeight="{TemplateBinding FontWeight}" FontStyle="{TemplateBinding FontStyle}" FontSize="{TemplateBinding FontSize}" FontFamily="{TemplateBinding FontFamily}" IsReadOnly="True" SelectionForeground="{TemplateBinding SelectionForeground}" SelectionBackground="{TemplateBinding SelectionBackground}" TextAlignment="{TemplateBinding TextAlignment}" TextWrapping="{TemplateBinding TextWrapping}" Text="{TemplateBinding Text}" Template="{StaticResource PhoneDisabledTextBoxTemplate}"/>
                            </Border>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <ControlTemplate x:Key="PhoneDisabledPasswordBoxTemplate" TargetType="PasswordBox">
            <Border x:Name="ContentElement" BorderThickness="0" Margin="{StaticResource PhonePasswordBoxInnerMargin}" Padding="{TemplateBinding Padding}"/>
        </ControlTemplate>
        <Style x:Key="PasswordBoxStyle1" TargetType="PasswordBox">
            <Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilyNormal}"/>
            <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeMediumLarge}"/>
            <Setter Property="Background" Value="{StaticResource PhoneTextBoxBrush}"/>
            <Setter Property="Foreground" Value="{StaticResource PhoneTextBoxForegroundBrush}"/>
            <Setter Property="BorderBrush" Value="{StaticResource PhoneTextBoxBrush}"/>
            <Setter Property="BorderThickness" Value="{StaticResource PhoneBorderThickness}"/>
            <Setter Property="SelectionBackground" Value="{StaticResource PhoneAccentBrush}"/>
            <Setter Property="SelectionForeground" Value="{StaticResource PhoneContrastBackgroundBrush}"/>
            <Setter Property="Padding" Value="2"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="PasswordBox">
                        <Grid Background="Transparent">
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="MouseOver"/>
                                    <VisualState x:Name="Disabled">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="EnabledBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Collapsed</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DisabledBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Visible</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                                <VisualStateGroup x:Name="FocusStates">
                                    <VisualState x:Name="Focused">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="EnabledBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="White"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="EnabledBorder">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneTextBoxEditBorderBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Unfocused"/>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Border x:Name="EnabledBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Margin="{StaticResource PhoneTouchTargetOverhang}">
                                <Border x:Name="ContentElement" BorderThickness="0" Margin="{StaticResource PhonePasswordBoxInnerMargin}" Padding="{TemplateBinding Padding}"/>
                            </Border>
                            <Border x:Name="DisabledBorder" BorderBrush="{StaticResource PhoneDisabledBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="Transparent" Margin="{StaticResource PhoneTouchTargetOverhang}" Visibility="Collapsed">
                                <PasswordBox x:Name="DisabledContent" Background="Transparent" Foreground="{StaticResource PhoneDisabledBrush}" Password="{TemplateBinding Password}" PasswordChar="{TemplateBinding PasswordChar}" Template="{StaticResource PhoneDisabledPasswordBoxTemplate}"/>
                            </Border>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

    </phone:PhoneApplicationPage.Resources>

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <Image Grid.RowSpan="2" Source="/NASA.BeAMartian;component/Assets/Images/blk.png" Stretch="Fill"/>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="NASA BE A MARTIAN" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="register child" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <ScrollViewer HorizontalAlignment="Left" VerticalAlignment="Top">
                <StackPanel>
                    <TextBlock TextWrapping="Wrap" Height="43" Width="457" Foreground="#FF4BFF3C" Text="Sign up!"/>
                    <Grid HorizontalAlignment="Left">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="200"/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <TextBlock TextWrapping="Wrap" Text="Hi. Enter Your Parent's or Guardian's Email Please!" VerticalAlignment="Center" Margin="0,0,15,0" d:LayoutOverrides="Width" FontSize="18.667"/>
                        <TextBox Style="{StaticResource TextBoxStyle1}" x:Name="tbParentEmail" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Top" Width="260"/>
                    </Grid>
                    <TextBlock TextWrapping="Wrap" Height="43" Width="457" Foreground="#FF4BFF3C" Text="Pick a Martian Name" Margin="0,15,0,0"/>
                    <Grid HorizontalAlignment="Left">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="200"/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <TextBlock TextWrapping="Wrap" Text="My Martian user name is:" VerticalAlignment="Center" Margin="0,0,15,0" d:LayoutOverrides="Width"/>
                        <TextBox Style="{StaticResource TextBoxStyle1}" x:Name="tbUsername" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Top" Width="260"/>
                    </Grid>
                    <Grid HorizontalAlignment="Left">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="200"/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <TextBlock TextWrapping="Wrap" Text="My Martian password is:" VerticalAlignment="Center" Margin="0,0,15,0" d:LayoutOverrides="Width"/>
                        <PasswordBox Style="{StaticResource PasswordBoxStyle1}" x:Name="pwNew" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Top" Width="260"/>
                    </Grid>
                    <Grid HorizontalAlignment="Left">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="200"/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <TextBlock TextWrapping="Wrap" Text="Verify Martian password:" VerticalAlignment="Center" Margin="0,0,15,0" d:LayoutOverrides="Width"/>
                        <PasswordBox Style="{StaticResource PasswordBoxStyle1}" x:Name="pwConfirm" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Top" Width="260"/>
                    </Grid>
                    <TextBlock TextWrapping="Wrap" Height="43" Width="457" Foreground="#FF4BFF3C" Text="Select what kind of Martian citizen you want to be" Margin="0,20,0,0"/>
                    <TextBlock Text="I would most like to be:" TextWrapping="Wrap"/>
                    <RadioButton Checked="RadioButton_Checked" Foreground="Orange" GroupName="CitizenType" Content="Intrepid Explorer"/>
                    <RadioButton Checked="RadioButton_Checked" Foreground="Orange" GroupName="CitizenType" Content="Knowledge Creator"/>
                    <RadioButton Checked="RadioButton_Checked" Foreground="Orange" GroupName="CitizenType" Content="Willing Volunteer"/>
                    <RadioButton Checked="RadioButton_Checked" Foreground="Orange" GroupName="CitizenType" Content="Pioneering Innovator"/>
                    <RadioButton Checked="RadioButton_Checked" Foreground="Orange" GroupName="CitizenType" Content="Seeking of Awe and Wonder"/>
                    <RadioButton Checked="RadioButton_Checked" Foreground="Orange" GroupName="CitizenType" Content="Life-long Learner"/>
                    <TextBlock TextWrapping="Wrap" Height="63" Width="457" Foreground="#FF4BFF3C" Text="Select a Robot to Represent Yourself in the Martian Community" Margin="0,20,0,0"/>
                    <TextBlock TextWrapping="Wrap"><Run Text="We send robots to places like Mars that people can’t visit yet. Robots tell us what it’s like on Mars."/><LineBreak/><Run/><LineBreak/><Run Text="We can make small robots that have special strengths that animals have. We try to give them these strengths so they can move around and adapt to places…maybe even Mars!"/><LineBreak/><Run/><LineBreak/><Run Text="If you were going to send a robot to explore Mars for you, which one would you pick?">
                    		<Run.Foreground>
                    			<SolidColorBrush Color="Orange">
                    				<SolidColorBrush.RelativeTransform>
                    					<MatrixTransform Matrix="Identity"/>
                    				</SolidColorBrush.RelativeTransform>
                    				<SolidColorBrush.Transform>
                    					<MatrixTransform Matrix="Identity"/>
                    				</SolidColorBrush.Transform>
                    			</SolidColorBrush>
                    		</Run.Foreground>
                    	</Run></TextBlock>
                    <toolkit:WrapPanel Width="480" Margin="-11,0,0,0">
                        <RadioButton Tag="cheetah" Checked="RadioButton_Checked" Foreground="Orange" GroupName="Avatar" BorderThickness="0" >
                            <StackPanel Margin="-8,0,0,0">
                                <Image Source="http://beamartian.jpl.nasa.gov/s/img/avatars/avatar-cheetah-lg.jpg" Width="100" Height="100"/>
                            </StackPanel>
                        </RadioButton>
                        <RadioButton Tag="crab" Checked="RadioButton_Checked" Foreground="Orange" GroupName="Avatar" BorderThickness="0" >
                            <StackPanel Margin="-8,0,0,0">
                                <Image Source="http://beamartian.jpl.nasa.gov/s/img/avatars/avatar-crab-lg.jpg" Width="100" Height="100"/>
                            </StackPanel>
                        </RadioButton>
                        <RadioButton Tag="camel" Checked="RadioButton_Checked" Foreground="Orange" GroupName="Avatar" BorderThickness="0" >
                            <StackPanel Margin="-8,0,0,0">
                                <Image Source="http://beamartian.jpl.nasa.gov/s/img/avatars/avatar-camel-lg.jpg" Width="100" Height="100"/>
                            </StackPanel>
                        </RadioButton>
                        <RadioButton Tag="meerkat" Checked="RadioButton_Checked" Foreground="Orange" GroupName="Avatar" BorderThickness="0" >
                            <StackPanel Margin="-8,0,0,0">
                                <Image Source="http://beamartian.jpl.nasa.gov/s/img/avatars/avatar-meerkat-lg.jpg" Width="100" Height="100"/>
                            </StackPanel>
                        </RadioButton>
                        <RadioButton Tag="hawk" Checked="RadioButton_Checked" Foreground="Orange" GroupName="Avatar" BorderThickness="0" >
                            <StackPanel Margin="-8,0,0,0">
                                <Image Source="http://beamartian.jpl.nasa.gov/s/img/avatars/avatar-hawk-lg.jpg" Width="100" Height="100"/>
                            </StackPanel>
                        </RadioButton>
                        <RadioButton Tag="dragonfly" Checked="RadioButton_Checked" Foreground="Orange" GroupName="Avatar" BorderThickness="0" >
                            <StackPanel Margin="-8,0,0,0">
                                <Image Source="http://beamartian.jpl.nasa.gov/s/img/avatars/avatar-dragonfly-lg.jpg" Width="100" Height="100"/>
                            </StackPanel>
                        </RadioButton>
                        <RadioButton Tag="bat" Checked="RadioButton_Checked" Foreground="Orange" GroupName="Avatar" BorderThickness="0" >
                            <StackPanel Margin="-8,0,0,0">
                                <Image Source="http://beamartian.jpl.nasa.gov/s/img/avatars/avatar-bat-lg.jpg" Width="100" Height="100"/>
                            </StackPanel>
                        </RadioButton>
                        <RadioButton Tag="hummingbird" Checked="RadioButton_Checked" Foreground="Orange" GroupName="Avatar" BorderThickness="0" >
                            <StackPanel Margin="-8,0,0,0">
                                <Image Source="http://beamartian.jpl.nasa.gov/s/img/avatars/avatar-hummingbird-lg.jpg" Width="100" Height="100"/>
                            </StackPanel>
                        </RadioButton>
                        <RadioButton Tag="marsupial" Checked="RadioButton_Checked" Foreground="Orange" GroupName="Avatar" BorderThickness="0" >
                            <StackPanel Margin="-8,0,0,0">
                                <Image Source="http://beamartian.jpl.nasa.gov/s/img/avatars/avatar-marsupial-lg.jpg" Width="100" Height="100"/>
                            </StackPanel>
                        </RadioButton>
                        <RadioButton Tag="toad" Checked="RadioButton_Checked" Foreground="Orange" GroupName="Avatar" BorderThickness="0" >
                            <StackPanel Margin="-8,0,0,0">
                                <Image Source="http://beamartian.jpl.nasa.gov/s/img/avatars/avatar-toad-lg.jpg" Width="100" Height="100"/>
                            </StackPanel>
                        </RadioButton>
                        <RadioButton Tag="rabbit" Checked="RadioButton_Checked" Foreground="Orange" GroupName="Avatar" BorderThickness="0" >
                            <StackPanel Margin="-8,0,0,0">
                                <Image Source="http://beamartian.jpl.nasa.gov/s/img/avatars/avatar-rabbit-lg.jpg" Width="100" Height="100"/>
                            </StackPanel>
                        </RadioButton>
                    </toolkit:WrapPanel>
                    <TextBlock TextWrapping="Wrap" Height="43" Width="457" Foreground="#FF4BFF3C" Text="Citizen Oath" Margin="0,20,0,0"/>
                    <TextBlock Text="With rights to participate, come responsibilities:" TextWrapping="Wrap"/>
                    <CheckBox Style="{StaticResource CheckBoxStyle2}" x:Name="cbCivicAgree">
                        <TextBlock Text="* I promise I will not give anyone info about myself." TextWrapping="Wrap"/>
                    </CheckBox>
                    <CheckBox Style="{StaticResource CheckBoxStyle2}" x:Name="cbTerms">
                        <TextBlock Text="* I promise I will treat others nicely." TextWrapping="Wrap"/>
                    </CheckBox>
                    <CheckBox Style="{StaticResource CheckBoxStyle2}" x:Name="cbTerms_Copy">
                    	<TextBlock Text="* I promise I will not use bad words or say mean things." TextWrapping="Wrap"/>
                    </CheckBox>
                    <CheckBox Style="{StaticResource CheckBoxStyle2}" x:Name="cbTerms_Copy1">
                    	<TextBlock Text="* I promise I will have fun and learn!" TextWrapping="Wrap"/>
                    </CheckBox>
                    <toolkit:WrapPanel>
                        <TextBlock Text="By clicking here, I agree with the full"/>
                        <HyperlinkButton Click="HyperlinkButton_Click" Margin="-5,0,0,0" Tag="http://beamartian.jpl.nasa.gov/cityclerk/termsofuse" Content="Terms of Use" FontSize="20" Foreground="#FF00CAFF"/>
                        <TextBlock Text="and" Margin="0,0,0,0"/>
                        <HyperlinkButton Click="HyperlinkButton_Click"  Margin="-5,0,0,0" Tag="http://beamartian.jpl.nasa.gov/cityclerk/codeofconduct" Content="Code of Conduct" FontSize="20" Foreground="#FF00CAFF"/>
                        <TextBlock Text="." Margin="-11,0,0,0"/>
                    </toolkit:WrapPanel>
                    <Button Click="Button_Click" Content="submit" Height="100" Width="456" Margin="0,22,0,30"/>
                    <TextBlock TextWrapping="Wrap" Height="63" Width="457" Foreground="#FF4BFF3C" Text="Select a Robot to Represent Yourself in the Martian Community" Margin="0,20,0,0" Visibility="Collapsed"/>
                    <TextBlock TextWrapping="Wrap" Visibility="Collapsed"><Run Text="We send robots to places like Mars that people can’t visit yet. Robots tell us what it’s like on Mars."/><LineBreak/><Run/><LineBreak/><Run Text="We can make small robots that have special strengths that animals have. We try to give them these strengths so they can move around and adapt to places…maybe even Mars!"/><LineBreak/><Run/><LineBreak/><Run Text="If you were going to send a robot to explore Mars for you, which one would you pick?">
                    		<Run.Foreground>
                    			<SolidColorBrush Color="Orange">
                    				<SolidColorBrush.RelativeTransform>
                    					<MatrixTransform Matrix="Identity"/>
                    				</SolidColorBrush.RelativeTransform>
                    				<SolidColorBrush.Transform>
                    					<MatrixTransform Matrix="Identity"/>
                    				</SolidColorBrush.Transform>
                    			</SolidColorBrush>
                    		</Run.Foreground>
                    	</Run></TextBlock>
                    <toolkit:WrapPanel Width="480" Margin="-11,0,0,0" Visibility="Collapsed">
                    	<RadioButton Tag="cheetah" Checked="RadioButton_Checked" Foreground="Orange" GroupName="Avatar" BorderThickness="0" >
                    		<StackPanel Margin="-8,0,0,0">
                    			<Image Source="http://beamartian.jpl.nasa.gov/s/img/avatars/avatar-cheetah-lg.jpg" Width="100" Height="100"/>
                    		</StackPanel>
                    	</RadioButton>
                    	<RadioButton Tag="crab" Checked="RadioButton_Checked" Foreground="Orange" GroupName="Avatar" BorderThickness="0" >
                    		<StackPanel Margin="-8,0,0,0">
                    			<Image Source="http://beamartian.jpl.nasa.gov/s/img/avatars/avatar-crab-lg.jpg" Width="100" Height="100"/>
                    		</StackPanel>
                    	</RadioButton>
                    	<RadioButton Tag="camel" Checked="RadioButton_Checked" Foreground="Orange" GroupName="Avatar" BorderThickness="0" >
                    		<StackPanel Margin="-8,0,0,0">
                    			<Image Source="http://beamartian.jpl.nasa.gov/s/img/avatars/avatar-camel-lg.jpg" Width="100" Height="100"/>
                    		</StackPanel>
                    	</RadioButton>
                    	<RadioButton Tag="meerkat" Checked="RadioButton_Checked" Foreground="Orange" GroupName="Avatar" BorderThickness="0" >
                    		<StackPanel Margin="-8,0,0,0">
                    			<Image Source="http://beamartian.jpl.nasa.gov/s/img/avatars/avatar-meerkat-lg.jpg" Width="100" Height="100"/>
                    		</StackPanel>
                    	</RadioButton>
                    	<RadioButton Tag="hawk" Checked="RadioButton_Checked" Foreground="Orange" GroupName="Avatar" BorderThickness="0" >
                    		<StackPanel Margin="-8,0,0,0">
                    			<Image Source="http://beamartian.jpl.nasa.gov/s/img/avatars/avatar-hawk-lg.jpg" Width="100" Height="100"/>
                    		</StackPanel>
                    	</RadioButton>
                    	<RadioButton Tag="dragonfly" Checked="RadioButton_Checked" Foreground="Orange" GroupName="Avatar" BorderThickness="0" >
                    		<StackPanel Margin="-8,0,0,0">
                    			<Image Source="http://beamartian.jpl.nasa.gov/s/img/avatars/avatar-dragonfly-lg.jpg" Width="100" Height="100"/>
                    		</StackPanel>
                    	</RadioButton>
                    	<RadioButton Tag="bat" Checked="RadioButton_Checked" Foreground="Orange" GroupName="Avatar" BorderThickness="0" >
                    		<StackPanel Margin="-8,0,0,0">
                    			<Image Source="http://beamartian.jpl.nasa.gov/s/img/avatars/avatar-bat-lg.jpg" Width="100" Height="100"/>
                    		</StackPanel>
                    	</RadioButton>
                    	<RadioButton Tag="hummingbird" Checked="RadioButton_Checked" Foreground="Orange" GroupName="Avatar" BorderThickness="0" >
                    		<StackPanel Margin="-8,0,0,0">
                    			<Image Source="http://beamartian.jpl.nasa.gov/s/img/avatars/avatar-hummingbird-lg.jpg" Width="100" Height="100"/>
                    		</StackPanel>
                    	</RadioButton>
                    	<RadioButton Tag="marsupial" Checked="RadioButton_Checked" Foreground="Orange" GroupName="Avatar" BorderThickness="0" >
                    		<StackPanel Margin="-8,0,0,0">
                    			<Image Source="http://beamartian.jpl.nasa.gov/s/img/avatars/avatar-marsupial-lg.jpg" Width="100" Height="100"/>
                    		</StackPanel>
                    	</RadioButton>
                    	<RadioButton Tag="toad" Checked="RadioButton_Checked" Foreground="Orange" GroupName="Avatar" BorderThickness="0" >
                    		<StackPanel Margin="-8,0,0,0">
                    			<Image Source="http://beamartian.jpl.nasa.gov/s/img/avatars/avatar-toad-lg.jpg" Width="100" Height="100"/>
                    		</StackPanel>
                    	</RadioButton>
                    	<RadioButton Tag="rabbit" Checked="RadioButton_Checked" Foreground="Orange" GroupName="Avatar" BorderThickness="0" >
                    		<StackPanel Margin="-8,0,0,0">
                    			<Image Source="http://beamartian.jpl.nasa.gov/s/img/avatars/avatar-rabbit-lg.jpg" Width="100" Height="100"/>
                    		</StackPanel>
                    	</RadioButton>
                    </toolkit:WrapPanel>
                </StackPanel>
            </ScrollViewer>
        </Grid>
    </Grid>

</phone:PhoneApplicationPage>
